class Test {
    public static class Point {
        private int x;
        private int y;

        Point(int x,int y) {
            this.x = x;
            this.y = y;
        }
        public void show() {
            System.out.println("x = " + x + ",y = " + y);
        }

        public void set(int x ,int y) {
            this.x = x;
            this.y = y;
        }
    }

    public static void display(Point point) {
        System.out.println("point'Address = " + point);
        point.show();
        System.out.println("modify point value");
        point.set(1,2);

    }

    public static void display(int a) {
        System.out.println("a = " + a);
        a = 3;
    }

    public static void main(String [] args) {
        Point point = new Point(3,4);
        System.out.println("in main point = " + point);
        Test.display(point);
        point.show();
        int a = 4;
        Test.display(a);
        System.out.println("in main a = " + a);

    }
}
